<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>用户列表</title>
    <link rel="stylesheet" href="/static/component/pear/css/pear.css"/>
    <meta name="viewport" content="width=device-width,user-scalable=no, initial-scale=1">
    <script src="/static/component/layui/layui.js"></script>
    <script src="/static/component/pear/pear.js"></script>
    <script src="/static/component/pear/module/ruinuo/sortable.js"></script>
    <link rel="stylesheet" href="/static/component/pear/css//module/engine_table.css"/>
</head>
<body class="pear-container">
<div class="view_body"></div>
<script type="text/html" id="view_body_data">
    <div class="body_con">
        {{#  if(d.left.status== 1){ }}
        <div class="left">
            <div class="layui-card">
                <div class="layui-card-header display_flex">
                    <div class="flex_1">{{d.left.title}}</div>
                    <div class="layui-icon layui-icon-add-1 tree_add"></div>
                 </div>
                <div class="layui-card-body">
                    <ul class="layui-menu">
                        <li class="layui-menu-item-checked" data-value="" data-table="{{d.table.elem}}" onclick="layui.engine_table.LeftClick(this);">
                            <div class="layui-menu-body-title">全部</div>
                        </li>
                        <li  data-value="1" data-table="{{d.table.elem}}" onclick="layui.engine_table.LeftClick(this);">
                            <div class="layui-menu-body-title">代理</div>
                        </li>
                        <li>
                            <div class="layui-menu-body-title" data-value="2" data-table="{{d.table.elem}}" onclick="layui.engine_table.LeftClick(this);">代理</div>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
        {{#  } }}

        <div class="right">
            <div class="table_body">
                {{#  if(d.header.menu.length != 0 || d.header.total.length != 0){ }}
                <div class="table_head display_flex">
                    <div class="head_menu flex_1 display_flex">
                        {{# layui.each(d.header.menu, function(index, item){ }}
                        <li {{# if(item.on){ }}class="on" {{# } }} data-code="{{item.code}}" onclick="layui.engine_table.TableMenu(this)">{{item.title}}<span
                                class="layui-badge pear-btn-primary" id="menu_{{item.code}}">{{item.num}}</span></li>
                        {{# }); }}
                    </div>
                    <div class="head_sum display_flex">
                        {{# layui.each(d.header.total, function(index, item){ }}
                        <li>{{item.title}}：<span class="layui-badge pear-btn-primary" id="total_{{item.code}}">{{item.num}}</span></li>
                        {{# }); }}
                    </div>
                </div>
                {{#  } }}

                <div class="table_view layui-form" style="margin-top: 0px">
                    <div class="head_button display_flex">
                        <div class="flex_1">
                            {{# layui.each(d.header.button, function(index, item){ }}
                            <button class="pear-btn pear-btn-sm" style="background:{{item.bgcolor}} ;color: {{item.color}};border-color: {{item.bgcolor}}" onclick="layui.engine_table.ButtonAciton({{index}},1,'{{d.table.elem}}')">
                                {{#  if(item.icon){ }}<i class="{{item.icon}}"></i>{{#  } }}{{item.title}}
                            </button>
                            {{# }); }}
                        </div>
                        {{#  if(d.header.search.length != 0){ }}
                        <div class="layui-form display_flex">
                            <div class="flex_1 display_flex table_from"></div>
                            <div>
                                <button class="pear-btn pear-btn-primary pear-btn-sm" onclick="layui.engine_table.SearchLoad('{{d.table.elem}}');">
                                    <i class="ruinuo-icon icon-search"></i>搜索
                                </button>
                                <button class="pear-btn pear-btn-sm"  onclick="layui.engine_table.SearchBack('{{d.table.elem}}');">
                                    <i class="ruinuo-icon icon-back"></i>重置
                                </button>
                            </div>
                        </div>
                        {{#  } }}
                    </div>
                    <table id="{{d.table.elem}}" lay-filter="{{d.table.elem}}"></table>
                </div>

            </div>
        </div>
    </div>
</script>
<script src="/static/js/admin/user/config.js"></script>
<script src="/static/js/admin/user/table.js"></script>
</body>
</html>
